package com.jindy.module.clearingMarginDetailView.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.clearingMarginDetailView.mapper.ClearingMarginDetailViewMapper;
import com.jindy.module.clearingMarginDetailView.domain.ClearingMarginDetailView;
import com.jindy.module.clearingMarginDetailView.service.IClearingMarginDetailViewService;

/**
 * VIEWService业务层处理
 * 
 * @author jindy
 * @date 2023-06-06
 */
@Service
public class ClearingMarginDetailViewServiceImpl implements IClearingMarginDetailViewService 
{
    @Autowired
    private ClearingMarginDetailViewMapper clearingMarginDetailViewMapper;

    /**
     * 查询VIEW
     * 
     * @param salesmanName VIEW主键
     * @return VIEW
     */
    @Override
    public ClearingMarginDetailView selectClearingMarginDetailViewBySalesmanName(String salesmanName)
    {
        return clearingMarginDetailViewMapper.selectClearingMarginDetailViewBySalesmanName(salesmanName);
    }

    /**
     * 查询VIEW列表
     * 
     * @param clearingMarginDetailView VIEW
     * @return VIEW
     */
    @Override
    public List<ClearingMarginDetailView> selectClearingMarginDetailViewList(ClearingMarginDetailView clearingMarginDetailView)
    {
        return clearingMarginDetailViewMapper.selectClearingMarginDetailViewList(clearingMarginDetailView);
    }

    /**
     * 新增VIEW
     * 
     * @param clearingMarginDetailView VIEW
     * @return 结果
     */
    @Override
    public int insertClearingMarginDetailView(ClearingMarginDetailView clearingMarginDetailView)
    {
        return clearingMarginDetailViewMapper.insertClearingMarginDetailView(clearingMarginDetailView);
    }

    /**
     * 修改VIEW
     * 
     * @param clearingMarginDetailView VIEW
     * @return 结果
     */
    @Override
    public int updateClearingMarginDetailView(ClearingMarginDetailView clearingMarginDetailView)
    {
        return clearingMarginDetailViewMapper.updateClearingMarginDetailView(clearingMarginDetailView);
    }

    /**
     * 批量删除VIEW
     * 
     * @param salesmanNames 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteClearingMarginDetailViewBySalesmanNames(String[] salesmanNames)
    {
        return clearingMarginDetailViewMapper.deleteClearingMarginDetailViewBySalesmanNames(salesmanNames);
    }

    /**
     * 删除VIEW信息
     * 
     * @param salesmanName VIEW主键
     * @return 结果
     */
    @Override
    public int deleteClearingMarginDetailViewBySalesmanName(String salesmanName)
    {
        return clearingMarginDetailViewMapper.deleteClearingMarginDetailViewBySalesmanName(salesmanName);
    }
}
